
/**
 * 风险预警统计
 */
export function riskWarning() {
	return uni.$u.http.get('car/illegal/riskWarning');
}

/**
 * 车辆列表
 */
export function apiCarBasicList(params) {
	return uni.$u.http.post('car/basic/apiCarBasicList', params);
}

/**
 * 违章查询
 */
export function illegalQuery(params) {
	return uni.$u.http.post('car/illegal/batchQueryillegal', params,{
		header: {
			'content-type': 'application/json',
		}
	});
}

/**
 * 车辆违章列表
 */
export function illegalList(params) {
	return uni.$u.http.get('car/illegal/list?'+ params);
}

/**
 * 违章详情
 */
export function illegalDetail(params) {
	return uni.$u.http.get('car/illegal/'+ params);
}

/**
 * 违章列表统计
 */
export function illegalStatistics() {
	return uni.$u.http.get('car/illegal/index');
}


/**
 * 车辆违章统计
 */
export function vehicleViolationStatistics(params) {
	return uni.$u.http.get('car/illegal/vehicleViolationStatistics?'+ params);
}


/**
 * 新增违章
 */
export function addIllegal(data) {
	return uni.$u.http.post('car/illegal', data, {
		header: {
			'content-type': 'application/json',
		}
	});
}

/**
 * 编辑违章
 */
export function editIllegal(data) {
	return uni.$u.http.put('car/illegal', data, {
		header: {
			'content-type': 'application/json',
		}
	});
}

/**
 * 车辆列表
 */
export function carList(params) {
	return uni.$u.http.get('car/basic/basicList?'+params);
}

/**
 * 删除违章
 */
export function deleteIllegal(params) {
	return uni.$u.http.delete('car/illegal/'+ params);
}


/**
 * 违章预警配置
 */
export function violationWarning() {
	return uni.$u.http.get('car/illegal/violationWarning');
}
